function init() {
    getService()
    //console.log(getmemberInfo());
    // var info = getmemberInfo();
    // var data=getdata();
    // $('#name').text(info.nickName);
    // $('#logo').attr("src", info.logo);
    //
    // $('#ju').text('已消费'+data.buyMoney+'元 距成为会员还差'+data.shortMoney+'元');
// /mobile/address/getService
}

function getService() {

    $.ajax({
        type: "post",
        url: ajaxUrl + "/mobile/address/getService",
        async: true,
        data: {'lng':'120.273148' ,'lat':'30.237046'},
        success: function (data) {
            var result = data.result;
            var str='';
            for (var i=0;i<result.length;i++) {
               str+= '  <div class="add-item bottom-border">' +
                '            <div class="text">' +
                '                <div class="name-tel">'+result[i].name+'<i class="tel">'+result[i].mobile+'</i></div>' +
                '                <div class="addr">'+result[i].address+'</div>' +
              //  '                <div class="dingwei">' +
              //  '                    <div class="distance">6.1km</div>' +
               // '                    <!-- <div class="des">离我最近</div> -->' +
               // '                </div>' +
                '            </div>' +
                '        </div>';
            }
        $('#serviceContent').html(str);

        }
    });

}

function getmemberInfo() {
    var member;
    $.ajax({
        type: "post",
        url: ajaxUrl + "/mobile/member/getMember",
        async: false,
        data: {'memberId': memberId},
        success: function (data) {
            member = data.result;
        }
    });
    return member;
}